<template>
	<view :class="vi_pageSize">
		<vi-notify :top="topfix" ref="vi_notify"></vi-notify>
		<module-loading ref="vi_loading" :loading="vi_loading" :loadingMask="vi_loadingMask"></module-loading>
		<vi-headbar goback>
			<view slot="right">
				响应式
				<text class="response">开启</text>
				<text class="noresponse color-warning">关闭</text>
			</view>
			{{vi_pageTitle}}
		</vi-headbar>
		<view class="docTable">
			<view class="th">
				<view>属性名</view>
				<view>类型</view>
				<view>默认值</view>
				<view>描述</view>
			</view>
			<view class="tr extra">
				<view class="body">
					<view>dataList</view>
					<view>Array</view>
					<view>无</view>
					<view>tab数据集</view>
				</view>
				<view class="appendix">
					格式：{ name:"",	 value:"" }
					<view class="">
						name：标签名
					</view>
					<view class="">
						value：标签值
					</view>
				</view>
			</view>
			<view class="tr">
				<view>type</view>
				<view>String</view>
				<view>primary</view>
				<view>主题色</view>
			</view>
			<view class="tr">
				<view>color</view>
				<view>String</view>
				<view>无</view>
				<view>自定义主题色</view>
			</view>
			<view class="tr">
				<view>textColor</view>
				<view>String</view>
				<view>无</view>
				<view>标题自定义色</view>
			</view>
			<view class="tr">
				<view>textBold</view>
				<view>Boolean</view>
				<view>false</view>
				<view>标题激活时加粗</view>
			</view>
			<view class="tr">
				<view>value</view>
				<view>String, Number</view>
				<view>无</view>
				<view>当前值</view>
			</view>
			<view class="tr">
				<view>disabled</view>
				<view>Boolean</view>
				<view>false</view>
				<view>禁用</view>
			</view>
			<view class="tr">
				<view>readOnly</view>
				<view>Boolean</view>
				<view>false</view>
				<view>只读</view>
			</view>
			<view class="tr">
				<view>tipWidth</view>
				<view>String, Number</view>
				<view>75%</view>
				<view>指示器宽度，可带单位</view>
			</view>
			<view class="tr">
				<view>tipHeight</view>
				<view>String, Number</view>
				<view>2px</view>
				<view>指示器高度，可带单位</view>
			</view>
			<view class="tr">
				<view>tabWidth</view>
				<view>String</view>
				<view>equal</view>
				<view>tab项宽度，需带单位。可选equal等距、center居中</view>
			</view>
			<view class="tr">
				<view>tabSpace</view>
				<view>String</view>
				<view>0.5em</view>
				<view>tab项两端间距，需带单位。两个tab之间距离为该值乘2</view>
			</view>
			<view class="tr">
				<view>track</view>
				<view>Boolean</view>
				<view>false</view>
				<view>存在滚动条的情况，点击tab项滚动到中央</view>
			</view>
			<view class="tr">
				<view>tabClass</view>
				<view>String</view>
				<view>无</view>
				<view>tabbar附加样式名，只对全局或穿透样式有效</view>
			</view>
			<view class="tr">
				<view>@change</view>
				<view>事件</view>
				<view></view>
				<view>值变更事件，提交当前值</view>
			</view>
			<view class="tr">
				<view>@input</view>
				<view>事件</view>
				<view></view>
				<view>值变更事件，用于model</view>
			</view>
		</view>
		
		
		<view class="p-sm">
			<view class="py-sm">
				基本使用：{{`&lt;vi-tabs :value="tab值" :dataList="tab数据集">&lt;/vi-tabs>`}}
			</view>
			<view class="py-sm">
				<vi-tabs :value="'1'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'}
					]"></vi-tabs>
				<vi-tabs :value="'2'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'}
					]" type="second"></vi-tabs>
				<vi-tabs :value="'3'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'}
					]" type="third"></vi-tabs>
				<vi-tabs :value="'1'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'}
					]" type="fourth"></vi-tabs>
				<vi-tabs :value="'2'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'}
					]" type="fifth"></vi-tabs>
				<vi-tabs :value="'3'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'}
					]" color="#ffc0b0"></vi-tabs>
			</view>
			<view class="py-sm">
				追踪
				<vi-tabs :value="'9'" :dataList="[
						{name:'标题1', value:'1'},
						{name:'标题2', value:'2'},
						{name:'标题3', value:'3'},
						{name:'标题4', value:'4'},
						{name:'标题5', value:'5'},
						{name:'标题6', value:'6'},
						{name:'标题7', value:'7'},
						{name:'标题8', value:'8'},
						{name:'标题9', value:'9'},
						{name:'标题0', value:'0'}
					]" track tabWidth="25%" textBold></vi-tabs>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.response{
	display: if($useResponse, inline, none);
}
.noresponse{
	display: if($useResponse, none, inline);
}
</style>
